import request from '@/utils/request'

export default {
    
    // //①课程大纲列表，根据课程id进行查询
    // getChapterList(courseId){
    //     return request({
    //         url: `/eduservice/video/getChapterList/${courseId}`,
    //         method: 'get'
    //       })
    // },
    // 添加小节
    addVideo(video){
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data:video
          })
    },
    // id查询小节
    getVideo(id){
        return request({
            url: `/eduservice/video/getVideo/${id}`,
            method: 'get',
          })
    },
    // 修改小节
    updateVideo(video){
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data:video
          })
    },
    //删除小节
    deleteVideo(id){
        return request({
            url: `/eduservice/video/${id}`,
            method: 'delete'
          })
    },
    removeAliVideo(id){
        return request({
            url: `/eduvod/video/removeAliVideo/${id}`,
            method: 'delete'
          })
    }
}